home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6409 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.2 KB

  1. Path: sn.no!not-for-mail
  2. From: christon@sn.no (Christopher Naas)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: V43 picture datatype
  5. Date: 27 Mar 1996 19:05:01 +0100
  6. Organization: SN Internett
  7. Message-ID: <1918.6660T1145T254@sn.no>
  8. NNTP-Posting-Host: sinsen.sn.no
  9. X-Newsreader: THOR 2.21 (Amiga;SOUP)
  10.  
  11. I have a couple of questions about transparency and the picture.datatype.
  12.  
  13.  
  14. 1. Picture datatype returns the wrong transparency color in the BitMapHeader
  15.    when the picture is remapped to a screen.
  16.    - Is this intentional?
  17.    - Is there a way to obtain the new transparency color?
  18.  
  19. 2. I have noticed that the new picture.datatype has an interesting tag:
  20.  
  21.    PDTA_MaskPlane (ULONG) -- V43
  22.        If a transparent,mask,alpha flags are set in
  23.        BitMapHeader.bmh_Masking you can get or set the
  24.        mask plane by this tag.
  25.        The maskplane can be used at for BltBitMapRastPort().
  26.  
  27.    But how do I use it? If I do:
  28.  
  29.    ULONG tst;
  30.  
  31.    PDTA_MaskPlane, tst,
  32.  
  33.    ..I get hits.
  34.  
  35.    if I do:
  36.  
  37.    PDTA_MaskPlane, &tst,
  38.  
  39.    .. tst is filled with a value.
  40.  
  41.  
  42.    How do I use this? I'm guessing that the above reference to Blt..
  43.    is a typo and should be a reference to BltMaskBitMapRastPort, and that
  44.    PDTA_MaskPlane (tst) should be used as the mask.
  45.  
  46.    This does, however, not work.
  47.  
  48.    passing tst as the mask results in a blank picture, passing &tst, results
  49.    in colors other than the transparency color dissapearing (several colors
  50.    are missing).
  51.  
  52.    Should I fill a 1 plane bitmap with this value and use Plane[0] as the
  53.    mask? PDTA_MaskPlane is defined as an ULONG, but a mask is supposed to
  54.    consist of bytes, the same width and height as the original bitmap.
  55.  
  56.  
  57. 3. The new picture datatype does not support TAG_IGNORE, instead it gives
  58.    a couple of Enforcer hits.
  59.  
  60. 4. How do I get the correct transparency pen when loading a picture through
  61.    datatypes with remapping, and how do I generate a mask for use with
  62.    BltMaskBitMapRastPort()? I need to support both the 24bit picture datatype
  63.    and the original OS3.0/3.1 one.
  64.  
  65.  
  66. --
  67. Christopher Landmark Naas    o  EMail: christon@sn.no
  68. LoungeBar Development        o  WWW:   http://www.sn.no/~christon/
  69. Former Reg. Amiga Developer  o  IRC:   KarmaComa
  70.